/* --- This is the styling for the map --- */

.white-container {
    padding: 50px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 50px auto;
}

.content {
    display: flex;
    justify-content: space-between;
}

#map {
    flex: 3;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid #ccc;
    margin-left: 20px;
    box-shadow: 0px 7px 14px rgba(0, 0, 0, 0.1);
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column; /* Ensure messages are displayed in a column */
}

.message-box {
    display: flex;
    padding: 10px;
    background-color: #fff;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

button {
    margin-left: 10px; /* Add some space between buttons */
}

/* Message styling */
.message {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 0;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end; /* Align sent messages to the right */
    background-color: #d1e7dd;
}

.message.received {
    align-self: flex-start; /* Align received messages to the left */
    background-color: #d1e7f0;
}